home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
os2
/
gnuwget.zip
/
wget-1.4.3
/
src
/
Makefile.in
< prev
next >
Wrap
Makefile
|
1997-02-07
|
4KB
|
150 lines
# Makefile for `wget' utility
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Version: @VERSION@
#
SHELL = /bin/sh
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
ANSI2KNR = @ANSI2KNR@
o = .@U@o
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sysconfdir = @sysconfdir@
CC = @CC@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\"
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INCLUDES = -I.. -I. -I$(srcdir)
COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS) $(DEFS) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
RM = rm -f
ETAGS = etags
SRC = connect.c host.c http.c netrc.c ftp-basic.c ftp.c ftp-ls.c \
mtch.c html.c retr.c recur.c url.c init.c utils.c cmpt.c \
getopt.c main.c version.c
OBJ = connect$o host$o http$o netrc$o ftp-basic$o ftp$o ftp-ls$o \
mtch$o html$o retr$o recur$o url$o init$o utils$o cmpt$o \
getopt.o main$o version$o
.SUFFIXES:
.SUFFIXES: .c .o ._c ._o
.c.o:
$(COMPILE) -c $<
.c._c: $(ANSI2KNR)
$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
._c._o:
@echo $(COMPILE) -c $<
@rm -f _$*.c
@ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
.c._o: $(ANSI2KNR)
$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
@echo $(COMPILE) -c $*._c
@rm -f _$*.c
@ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
# Dependencies for building
wget: $(OBJ)
$(LINK) $(OBJ) $(LIBS)
ansi2knr: ansi2knr.o
$(CC) -o ansi2knr ansi2knr.o $(LIBS)
$(OBJ): $(ANSI2KNR)
#
# Dependencies for installing
#
install: install.bin
uninstall: uninstall.bin
install.bin: wget
$(top_srcdir)/mkinstalldirs $(bindir)
$(INSTALL_PROGRAM) wget $(bindir)/wget
uninstall.bin:
$(RM) $(bindir)/wget
#
# Dependencies for cleanup
#
clean:
$(RM) *.o wget *~ *.bak core $(ANSI2KNR) *._o *._c
distclean: clean
$(RM) Makefile
realclean: distclean
$(RM) TAGS
#
# Dependencies for maintenance
#
subdir = src
Makefile: Makefile.in ../config.status
cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
TAGS: $(SRC)
-$(ETAGS) *.c *.h
# Dependencies:
ansi2knr.o:
cmpt$o: cmpt.h wget.h
connect$o: systhings.h windecl.h wget.h options.h utils.h connect.h host.h
ftp-basic$o: wget.h options.h utils.h ftp-basic.h connect.h host.h retr.h
ftp-ls$o: wget.h url.h utils.h ftp.h options.h
ftp$o: wget.h options.h utils.h url.h ftp.h ftp-basic.h html.h connect.h host.h http.h mtch.h retr.h netrc.h
getopt$o: getopt.h
host$o: wget.h options.h utils.h url.h host.h
html$o: wget.h options.h url.h utils.h ftp.h html.h http.h
http$o: wget.h options.h utils.h url.h host.h http.h retr.h connect.h mtch.h netrc.h
init$o: wget.h options.h utils.h init.h url.h ftp.h host.h recur.h netrc.h
main$o: wget.h options.h main.h utils.h url.h init.h retr.h recur.h ftp.h getopt.h wsstartup.h
mtch$o: wget.h mtch.h
netrc$o: wget.h utils.h netrc.h
recur$o: wget.h options.h url.h recur.h utils.h retr.h http.h ftp.h mtch.h host.h
retr$o: wget.h options.h utils.h retr.h url.h recur.h ftp.h html.h http.h host.h connect.h
url$o: wget.h options.h utils.h url.h host.h ftp.h mtch.h html.h
utils$o: wget.h utils.h options.h mtch.h
version$o:
wsstartup$o: